package four;

public class 四八参数传值机制 {
    int id;        //id
    String name;   //账户名
    String pwd;   //密码

    public 四八参数传值机制(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public   void   testParameterTransfer01(四八参数传值机制  u){
        u.name="高小八";
    }

    public   void   testParameterTransfer02(四八参数传值机制  u){
        u  =  new  四八参数传值机制(200,"高三");
    }

    public static void main(String[] args) {
        四八参数传值机制   u1  =  new 四八参数传值机制(100, "高小七");

        u1.testParameterTransfer01(u1);
        System.out.println(u1.name);

        u1.testParameterTransfer02(u1);
        System.out.println(u1.name);
    }
}
